ExtensionAction

An extension action.

The extension action represents an icon in the toolbar near the address bar in Chromium. JxBrowser does not display Chromium toolbar, but you can access the extension action icon, tooltip, badge, and other properties to display a clickable extension icon in your application. You can also interact with the extension action programmatically by simulating a click on it.

The extension action properties can change over time. To receive notifications about the changes, subscribe to receive the ExtensionActionUpdated events.

Since

8.0.0

Functions

Link copied to clipboard
abstract fun badge(): String
Returns the badge that is layered over the extension action icon.
Link copied to clipboard
abstract fun click()
Simulates a click on the extension action icon.
Link copied to clipboard
abstract fun extension(): Extension
Returns the extension that owns this action.
Link copied to clipboard
abstract fun icon(): Bitmap
Returns the icon of this extension action.
Link copied to clipboard
abstract fun isEnabled(): Boolean
Returns true when this action is enabled.
Link copied to clipboard
abstract fun <E : T?> on(eventClass: Class<E>, observer: Observer<E>): Subscription
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
inline fun <E : Event> Observable<in E>.subscribe(observer: Observer<E>): Subscription
inline fun <E : Event> Observable<in E>.subscribe(observer: Observer<E>): Subscription

Subscribes the given observer to receive events of type E from this Observable.

Link copied to clipboard
abstract fun tooltip(): String
Returns the tooltip of this extension action.
Link copied to clipboard
abstract fun type(): ExtensionActionType
Returns the type of this extension action.